set(prj_name fcgiServer)

file(GLOB_RECURSE srcfiles  *.cpp *.c)

include_directories(${CMAKE_BINARY_DIR}/output/thirdparty/fcgi/include)

link_directories(${CMAKE_BINARY_DIR}/output/thirdparty/fcgi/lib)

link_libraries(pthread)
link_libraries(libfcgi.a)
#link_libraries(libjson-c.a)

add_executable(${prj_name} ${srcfiles})

target_link_libraries(${prj_name} PRIVATE json-c)

install(TARGETS ${prj_name} DESTINATION bin)